Optimal. Leaf size=118 \[ -\frac {2 (5 c e f-c d g-2 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{15 c^2 e^2 (d+e x)^{3/2}}-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{5 c e^2 \sqrt {d+e x}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 118, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 46, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {808, 662}
\begin {gather*} -\frac {2 \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2} (-2 b e g-c d g+5 c e f)}{15 c^2 e^2 (d+e x)^{3/2}}-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{5 c e^2 \sqrt {d+e x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 662
Rule 808
Rubi steps
\begin {align*} \int \frac {(f+g x) \sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}}{\sqrt {d+e x}} \, dx &=-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{5 c e^2 \sqrt {d+e x}}-\frac {\left (2 \left (\frac {3}{2} e \left (-2 c e^2 f+b e^2 g\right )+\frac {1}{2} \left (c e^3 f-\left (-c d e^2+b e^3\right ) g\right )\right )\right ) \int \frac {\sqrt {c d^2-b d e-b e^2 x-c e^2 x^2}}{\sqrt {d+e x}} \, dx}{5 c e^3}\\ &=-\frac {2 (5 c e f-c d g-2 b e g) \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{15 c^2 e^2 (d+e x)^{3/2}}-\frac {2 g \left (d (c d-b e)-b e^2 x-c e^2 x^2\right )^{3/2}}{5 c e^2 \sqrt {d+e x}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 76, normalized size = 0.64 \begin {gather*} \frac {2 (-c d+b e+c e x) \sqrt {(d+e x) (-b e+c (d-e x))} (-2 b e g+c (5 e f+2 d g+3 e g x))}{15 c^2 e^2 \sqrt {d+e x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 71, normalized size = 0.60
method | result | size |
default | \(-\frac {2 \left (c e x +b e -c d \right ) \left (-3 c e g x +2 b e g -2 c d g -5 c e f \right ) \sqrt {-\left (e x +d \right ) \left (c e x +b e -c d \right )}}{15 c^{2} e^{2} \sqrt {e x +d}}\) | \(71\) |
gosper | \(-\frac {2 \left (c e x +b e -c d \right ) \left (-3 c e g x +2 b e g -2 c d g -5 c e f \right ) \sqrt {-c \,e^{2} x^{2}-b \,e^{2} x -b d e +c \,d^{2}}}{15 c^{2} e^{2} \sqrt {e x +d}}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 115, normalized size = 0.97 \begin {gather*} \frac {2 \, {\left (c x e - c d + b e\right )} \sqrt {-c x e + c d - b e} f e^{\left (-1\right )}}{3 \, c} + \frac {2 \, {\left (3 \, c^{2} x^{2} e^{2} - 2 \, c^{2} d^{2} + 4 \, b c d e - 2 \, b^{2} e^{2} - {\left (c^{2} d e - b c e^{2}\right )} x\right )} \sqrt {-c x e + c d - b e} g e^{\left (-2\right )}}{15 \, c^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.71, size = 126, normalized size = 1.07 \begin {gather*} -\frac {2 \, {\left (2 \, c^{2} d^{2} g - {\left (3 \, c^{2} g x^{2} + 5 \, b c f - 2 \, b^{2} g + {\left (5 \, c^{2} f + b c g\right )} x\right )} e^{2} + {\left (c^{2} d g x + 5 \, c^{2} d f - 4 \, b c d g\right )} e\right )} \sqrt {c d^{2} - b d e - {\left (c x^{2} + b x\right )} e^{2}} \sqrt {x e + d}}{15 \, {\left (c^{2} x e^{3} + c^{2} d e^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {- \left (d + e x\right ) \left (b e - c d + c e x\right )} \left (f + g x\right )}{\sqrt {d + e x}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 239 vs.
\(2 (105) = 210\).
time = 1.32, size = 239, normalized size = 2.03 \begin {gather*} -\frac {2}{15} \, {\left (g {\left (\frac {2 \, \sqrt {2 \, c d - b e} c^{2} d^{2} + 3 \, \sqrt {2 \, c d - b e} b c d e - 2 \, \sqrt {2 \, c d - b e} b^{2} e^{2}}{c^{2}} + \frac {5 \, {\left (-{\left (x e + d\right )} c + 2 \, c d - b e\right )}^{\frac {3}{2}} c d - 5 \, {\left (-{\left (x e + d\right )} c + 2 \, c d - b e\right )}^{\frac {3}{2}} b e - 3 \, {\left ({\left (x e + d\right )} c - 2 \, c d + b e\right )}^{2} \sqrt {-{\left (x e + d\right )} c + 2 \, c d - b e}}{c^{2}}\right )} e^{\left (-1\right )} + 5 \, f {\left (\frac {{\left (-{\left (x e + d\right )} c + 2 \, c d - b e\right )}^{\frac {3}{2}}}{c} - \frac {2 \, \sqrt {2 \, c d - b e} c d - \sqrt {2 \, c d - b e} b e}{c}\right )}\right )} e^{\left (-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.50, size = 100, normalized size = 0.85 \begin {gather*} \frac {\left (\frac {2\,g\,x^2}{5}+\frac {2\,x\,\left (b\,e\,g-c\,d\,g+5\,c\,e\,f\right )}{15\,c\,e}+\frac {2\,\left (b\,e-c\,d\right )\,\left (2\,c\,d\,g-2\,b\,e\,g+5\,c\,e\,f\right )}{15\,c^2\,e^2}\right )\,\sqrt {c\,d^2-b\,d\,e-c\,e^2\,x^2-b\,e^2\,x}}{\sqrt {d+e\,x}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________